package com.cz.rmi;

import java.rmi.Naming;

/**
 * @program: Reids
 * @description: 客户端
 * @author: Cheng Zhi
 * @create: 2023-06-09 09:52
 **/
public class JdkMainClient {

    public static void main(String[] args) {

        try {
            UserService userService = (UserService) Naming.lookup("rmi://localhost:8080/UserService");
        }catch (Exception e) {
            e.printStackTrace();
        }
    }

}
